Skip to content

test - #7

Closed
Ivy233 wants to merge 1 commit into
masterfrom
agent/developer/63cd763bcc5e
Closed

Ivy233 wants to merge 1 commit into
masterfrom
agent/developer/63cd763bcc5e

Conversation

@Ivy233

@Ivy233 Ivy233 commented Nov 20, 2026

Copy link
Copy Markdown
Owner

No description provided.

…horsAndSize

fix(layershell): 解耦 trySetAnchorsAndSize 中锚点与尺寸的更新

1. Move set_anchor() outside the anchorsSizeConflict() guard so anchors
   are always sent to the compositor regardless of size validity.
2. Only skip set_size() when anchorsSizeConflict() returns true, keeping
   size protection unchanged.

When m_requestSize is 0x0 (initial state before QML binding evaluation),
anchorsSizeConflict() returned true and caused set_anchor() to be skipped
as well, leaving the dock unanchored from the screen edge. This made the
taskbar appear floating after new user login on Treeland/Wayland.

当 m_requestSize 为 0x0(QML 绑定求值前的初始状态)时,
anchorsSizeConflict() 返回 true 导致 set_anchor() 也被跳过,
任务栏锚点无法修正,新用户登录后任务栏悬空展示。
将 set_anchor() 移出守卫始终调用,仅对 set_size() 保留守卫。

PMS: BUG-295199
Log: 修复新用户登录后任务栏悬空展示问题
Influence: Treeland/Wayland 环境下 layer shell 锚点设置
@Ivy233 Ivy233 closed this Nov 20, 2026
@Ivy233
Ivy233 deleted the agent/developer/63cd763bcc5e branch November 24, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant